
<script language="javascript">
$(document).ready(function() {ldelim}
{if $use_bbcode == 1}
	//$('#gbf #post').markItUp(myBbcodeSettings);
	$('#markItUpPost .markItUpHeader').append('{#GUEST_CHARSET_LEFT#} - <span class="charsLeft" id="charsLeft_new"></span>');
{else}
	$('#gbf #post').css('width','694px').after('{#GUEST_CHARSET_LEFT#} - <span class="charsLeft" id="charsLeft_new"></span>');
{/if}
	$('#gbf #post').limit({$post_max_length},'#charsLeft_new');
	$('#gbf').submit(function() {ldelim}
		if ($('#gbf #author').val() == '') {ldelim}
			alert('{#GUEST_SORRY_NOAUTOR#}');
			$('#gbf #author').focus();
			return false;
		{rdelim}
		var gbtext = $('#gbf textarea').val();
		if (gbtext.length < 10) {ldelim}
			alert("{#GUEST_SMALL_TEXT#}");
			$('#gbf textarea').focus();
			return false;
		{rdelim}
{if $use_code == 1}
		if ($('#gbf #securecode').val() == '') {ldelim}
			alert("{#GUEST_NO_SCODE_INPUT#}");
			$('#gbf #securecode').focus();
			return false;
		{rdelim}{/if}
	{rdelim});
{rdelim});
</script>


<h1>Отзывы Пациентов</h1>
<div class="page_nav"><div><a href="/">Главная</a> » Отзывы Пациентов</div></div>



	{if $row.description3|strlen > 10}{$row.description3}{/if}





{if $comments_array}
	{if $pages}
	<div class="page_navigation_box">{$pages}</div>
	{/if}

	<dl>
		{foreach name=faq from=$comments_array item=comments}
				    <dt>
				    <span class="icon"></span>{$comments->guestbook_post_text}

				    <div class="info_block_dop faq_dop">
				    {$comments->guestbook_post_created|date_format:$DATE_FORMAT|pretty_date} 
				    {if $comments->guestbook_post_author_name!=''} | <span><b>{$comments->guestbook_post_author_name|escape}</b></span>{/if}
				    {if $comments->guestbook_post_author_sity!=''} | Регион:{$comments->guestbook_post_author_sity|escape}{/if}
				    </div>
				     {if $comments->adm_comment}
				   	 	<span class="adm">{$comments->adm_comment}
					   	 	<div class="adm_name">С уважением, {$comments->adm_name|escape}</div>
					   	 </span>
				    {/if}
				    </dt>
				    
				    {*
				    <dd>{$comments->adm_comment}
				    <div class="adm_name">С уважением, {$comments->adm_name|escape}</div>
				    </dd>
				    *}	 
		{/foreach}
	</dl>

	{if $pages}
	<div class="page_navigation_box">{$pages}</div><br />
	{/if}

{else}
	К сожалению сообщений не найденно
{/if}




	<div class="content_zagolovok" id="new">Оставить новый отзыв</div>


	<a name="new"></a>


	<div class="module">
		<form id="gbf" action="index.php?module=guestbook&action=new" method="post">
			<input name="pim" type="hidden" value="{$pim}" />
			<input name="send" type="hidden" value="1" />
			<input name="document" type="hidden" value="{$document}" />
		
				<p>
					<label>Ваше имя</label>
					<input type="text" {*onfocus="if(this.blur)this.blur()"*} name="author" id="author" class="inputfield"  style="width:280px;" value="{$smarty.request.author|escape|stripslashes}" />
				</p>
				
				<p>
					<label>{#GUEST_YOUR_EMAIL#}</label>
					<input type="text" {*onfocus="if(this.blur)this.blur()"*} name="email" class="inputfield"  style="width:280px;"value="{$smarty.request.email|escape|stripslashes}" />
				</p>
		
				<p>
					<label>Ваше сообщение</label>
					<textarea id="post" name="text" class="comment" style="height: 160px;"></textarea>
					<label class="notice">Осталось символов: <span id="charsLeft_new"></span></label>
				</p>
				<div class="clear" style="height: 10px;"></div>
				<p>
					<label>{#GUEST_SECURE_CODE#}</label>
				    <span id="captcha"><img src="{$ABS_PATH}inc/captcha.php" alt="" width="120" height="60" border="0" /></span> <a href="javascript:void(0)" style="font-size:10px;" onclick="getCaptha()">обновить код</a><br />
				</p>	
				
				<p>	 
				        <label>Введите защитный код: <span>*</span></label>
				        <input name="securecode" type="text" id="securecode"  style="width:280px;" /><br />
				</p>
		
				<input name="submit" type="submit" class="button" value="{#GUEST_B_ADDPOST#}" />
		</form>
	</div>



{*
</div>
</div>
*}